home *** CD-ROM | disk | FTP | other *** search
- property pV, pMove
-
- on beginSprite me
- set pV to the locV of sprite the spriteNum of me
- set pMove to 9
- end
-
- on exitFrame me
- set the locV of sprite the spriteNum of me to pV - (the soundLevel * pMove)
- updateStage()
- end
-
- on mouseDown me
- repeat while the stillDown
- if (the mouseV > 336) and (the mouseV < 408) then
- set the locV of sprite the spriteNum of me to the mouseV
- set sl to (pV - the locV of sprite the spriteNum of me) / pMove
- set the soundLevel to sl
- updateStage()
- next repeat
- end if
- if the mouseV < 336 then
- set the locV of sprite the spriteNum of me to 336
- end if
- if the mouseV > 408 then
- set the locV of sprite the spriteNum of me to 408
- end if
- end repeat
- end
-